using System;
using Wolfpack.Core.Interfaces.Entities;

namespace Wolfpack.Contrib.Deployment
{
    /// <summary>
    /// This will download a nuget package if a new version is available.
    /// </summary>
    public class DeploymentPublisher : DeploymentPublisherBase<DeploymentConfig>
    {
        public DeploymentPublisher(DeploymentConfig config)
            : base(config)
        {
        }

        protected override PluginDescriptor BuildMessageIdentity()
        {
            return new PluginDescriptor
                       {
                           Description = string.Format("Deployment Publisher ({0} package)", Config.PackageId),
                           Name = Config.FriendlyId,
                           TypeId = new Guid("D27CD28E-BFAB-4281-918B-E74FD20E31C9")
                       };
        }
    }
}